import request from '/@/utils/request';
import { AxiosRequestConfig } from 'axios';

// /sysDictData/list 获取字典值
export const sysDictDataList = (params: object) => {
	return request({
		url: '/sysDictData/list',
		method: 'get',
		data: params,
	});
}

// /OMS/EduTrainingPlan/List 培训计划下拉列表
export const EduTrainingPlanList = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/List',
		method: 'get',
		data: params,
	});
}

// /OMS/EduTrainingPlan/Page 培训计划获取分页列表
export const EduTrainingPlanPage = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/Page',
		method: 'get',
		data: params,
	});
}


// /OMS/EduTrainingPlan/Add 培训计划 - 新增
export const EduTrainingPlanAdd = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/Add',
		method: 'post',
		data: params,
	});
}

// /OMS/EduTrainingPlan/Update 培训计划 - 编辑
export const EduTrainingPlanUpdate = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/Update',
		method: 'put',
		data: params,
	});
}

// /OMS/EduTrainingPlan/Delete 培训计划 - 删除
export const EduTrainingPlanDelete = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/Delete',
		method: 'delete',
		data: params,
	});
}

// /OMS/EduTrainingPlan/Release 培训计划 - 发布
export const EduTrainingPlanRelease = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/Release',
		method: 'put',
		data: params,
	});
}

// /OMS/EduTrainingPlan/UnRelease 培训计划 - 取消发布
export const EduTrainingPlanUnRelease = (params: object) => {
	return request({
		url: '/OMS/EduTrainingPlan/UnRelease',
		method: 'put',
		data: params,
	});
}

// /OMS/OmsEduExaminationDB/Page 考核题库 - 分页查询
export const OmsEduExaminationDBPage = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationDB/Page',
		method: 'get',
		data: params,
	});
}

// /OMS/OmsEduExaminationDB/Add 创建题库
export const OmsEduExaminationDBAdd = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationDB/Add',
		method: 'post',
		data: params,
	});
}

// /OMS/OmsEduExaminationDB/Update 编辑题库
export const OmsEduExaminationDBUpdate = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationDB/Update',
		method: 'put',
		data: params,
	});
}

// /OMS/OmsEduExaminationDB/Delete 删除题库
export const OmsEduExaminationDBDelete = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationDB/Delete',
		method: 'delete',
		data: params,
	});
}

// /OMS/OmsEduExaminationPaper/Page 试卷编制 - 获取分页列表
export const OmsEduExaminationPaperPage = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationPaper/Page',
		method: 'get',
		data: params,
	});
}

// /OMS/OmsEduExaminationPaper/Add 试卷编制 - 新增
export const OmsEduExaminationPaperAdd = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationPaper/Add',
		method: 'post',
		data: params,
	});
}

// /OMS/OmsEduExaminationPaper/Update 试卷编制 - 编辑
export const OmsEduExaminationPaperUpdate = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationPaper/Update',
		method: 'put',
		data: params,
	});
}

// /OMS/OmsEduExaminationPaper/GeneratePaper 一键生成考卷
export const OmsEduExaminationPaperGeneratePaper = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationPaper/GeneratePaper',
		method: 'post',
		data: params,
	});
}

// /OMS/EduStudyOL/Page 在线学习分页查询
export const EduStudyOLPage = (params: object) => {
	return request({
		url: '/OMS/EduStudyOL/Page',
		method: 'get',
		data: params,
	});
}

// /OMS/OmsEduExamOL/Page 在线考试分页查询
export const OmsEduExamOLPage = (params: object) => {
	return request({
		url: '/OMS/OmsEduExamOL/Page',
		method: 'get',
		data: params,
	});
}

// /OMS/UserExamPaper/Page 用户考卷分页查询
export const UserExamPaperPage = (params: object) => {
	return request({
		url: '/OMS/UserExamPaper/Page',
		method: 'get',
		data: params,
	});
}

// /OMS/EduStudyOL/Add 在线学习 - 创建记录
export const EduStudyOLAdd = (params: object) => {
	return request({
		url: '/OMS/EduStudyOL/Add',
		method: 'post',
		data: params,
	});
}

// /OMS/OmsEduExaminationDB/List 获取题库记录列表
export const OmsEduExaminationDBList = (params: object) => {
	return request({
		url: '/OMS/OmsEduExaminationDB/List',
		method: 'get',
		data: params,
	});
}

// /OMS/OmsEduExamOL/StartTheExamination 开始考试/重新考试
export const OmsEduExamOLStartTheExamination = (params: object) => {
	return request({
		url: '/OMS/OmsEduExamOL/StartTheExamination',
		method: 'post',
		data: params,
	});
}

// /OMS/OmsEduExamOL/HandedIn 在线考试 交卷
export const OmsEduExamOLHandedIn = (params: object) => {
	return request({
		url: '/OMS/OmsEduExamOL/HandedIn',
		method: 'post',
		data: params,
	});
}

// /OMS/UserExamPaper/List 获取考卷列表数据
export const UserExamPaperList = (params: object) => {
	return request({
		url: '/OMS/UserExamPaper/List',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDRPlan/Page 应急演练计划 分页
export const SMSDRPlanPage = (params: object) => {
	return request({
		url: '/SMS/SMSDRPlan/Page',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDRPlan/Add 应急演练计划 创建记录
export const SMSDRPlanAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDRPlan/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDRPlan/Update 应急演练计划 编辑
export const SMSDRPlanUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDRPlan/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDRPlan/Delete 应急演练计划 删除
export const SMSDRPlanDelete = (params: object) => {
	return request({
		url: '/SMS/SMSDRPlan/Delete',
		method: 'DELETE',
		data: params,
	});
}

// /SMS/SMSDRRecord/Add 应急演练记录 创建记录
export const SMSDRRecordAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDRRecord/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDRRecord/Update 应急演练记录 编辑记录
export const SMSDRRecordUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDRRecord/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDRRecord/Delete 应急演练记录 删除记录
export const SMSDRRecordDelete = (params: object) => {
	return request({
		url: '/SMS/SMSDRRecord/Delete',
		method: 'DELETE',
		data: params,
	});
}

// /SMS/SMSDRRecord/Page 应急演练记录 获取分页列表
export const SMSDRRecordPage = (params: object) => {
	return request({
		url: '/SMS/SMSDRRecord/Page',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDRPlan/List 应急演练计划 获取记录列表
export const SMSDRPlanList = (params: object) => {
	return request({
		url: '/SMS/SMSDRPlan/List',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDRAccident/Trees 事故应急管理树
export const SMSDRAccidentTrees = (params: object) => {
	return request({
		url: '/SMS/SMSDRAccident/Trees',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDRAccident/Add 事故应急管理 创建记录
export const SMSDRAccidentAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDRAccident/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDRAccident/Update 事故应急管理 编辑记录
export const SMSDRAccidentUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDRAccident/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDRAccident/Delete 事故应急管理 删除记录
export const SMSDRAccidentDelete = (params: object) => {
	return request({
		url: '/SMS/SMSDRAccident/Delete',
		method: 'DELETE',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/Page 风险分区 获取分页列表
export const SMSDCRiskPartitionPage = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/Page',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/Add 风险分区 创建记录
export const SMSDCRiskPartitionAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/Update 风险分区 编辑记录
export const SMSDCRiskPartitionUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/Delete 风险分区 删除记录
export const SMSDCRiskPartitionDelete = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/Delete',
		method: 'DELETE',
		data: params,
	});
}

// /EAM/Location/Tree 获取区域
export const LocationTree = (params: object) => {
	return request({
		url: '/EAM/Location/Tree',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCRiskPartitionDept/BathaAddOrUpdate 风险分区部门 批量新增或编辑
export const SMSDCRiskPartitionDeptBathaAddOrUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartitionDept/BathaAddOrUpdate',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCRiskPartitionUser/BathaAddOrUpdate 风险分区人员 批量新增或编辑
export const SMSDCRiskPartitionUserBathaAddOrUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartitionUser/BathaAddOrUpdate',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCRiskPartitionDept/List 风险分区部门 获取记录列表
export const SMSDCRiskPartitionDeptList = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartitionDept/List',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCRiskPartitionUser/List 风险分区人员 获取记录列表
export const SMSDCRiskPartitionUserList = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartitionUser/List',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/DrawAreaChart 保存绘制区域的数据信息
export const SMSDCRiskPartitionDrawAreaChart = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/DrawAreaChart',
		method: 'put',
		data: params,
	});
}

// /EAM/Classify/GetList 设备类型
export const ClassifyGetList = (params: object) => {
	return request({
		url: '/EAM/Classify/GetList',
		method: 'get',
		data: params,
	});
}

// /EAM/Equipment/GetList 设备台账列表
export const EquipmentGetList = (params: object) => {
	return request({
		url: '/EAM/Equipment/GetList',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/Page 风险分析单元 获取分页列表
export const SMSDCAnalysisUnitPage = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/Page',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/Delete 风险分析单元 删除
export const SMSDCAnalysisUnitDelete = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/Delete',
		method: 'DELETE',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnitJob/Page 风险分拆单元 分页列表
export const SMSDCAnalysisUnitJobPage = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnitJob/Page',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/Add 风险分析单元 创建记录
export const SMSDCAnalysisUnitAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/Update 风险分析单元 编辑记录
export const SMSDCAnalysisUnitUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCRiskPartition/List 风险分区 下拉列表
export const SMSDCRiskPartitionList = (params: object) => {
	return request({
		url: '/SMS/SMSDCRiskPartition/List',
		method: 'get',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnitJob/Add  风险分析单元作业活动 创建记录
export const SMSDCAnalysisUnitJobAdd = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnitJob/Add',
		method: 'post',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnitJob/Update 风险分析单元作业活动 编辑记录
export const SMSDCAnalysisUnitJobUpdate = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnitJob/Update',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/UpdateIsUse 风险分析单元 单条启用/停用
export const SMSDCAnalysisUnitUpdateIsUse = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/UpdateIsUse',
		method: 'put',
		data: params,
	});
}

// /SMS/SMSDCAnalysisUnit/BathUpdateIsUse 风险分析单元 批量启用/停用
export const SMSDCAnalysisUnitBathUpdateIsUse = (params: object) => {
	return request({
		url: '/SMS/SMSDCAnalysisUnit/BathUpdateIsUse',
		method: 'put',
		data: params,
	});
}